@charset "utf-8";
// sass 基础依赖
@import "../basic/variables";
@import "../basic/mixins";
@import "../basic/default";

//Tab-Bar
.tab-bar {
  background-color: $white;
  height: 96px;
  border-top: 1Px solid #eee;
  position: fixed;
  bottom: -2px;
  width: 100%;
  display: -webkit-box;
  display: flex;
  transition: bottom .2s;
  -webkit-box-sizing: border-box;
  z-index: 1;
  .tab-bar-active {
    background-color: $yellow;
  }
  .tab-bar-tab {
    text-decoration: none;
    -webkit-box-flex: 1;
    flex: 1;
    display: flex;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-box-pack: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    text-align: center;
    &:active {
      background-color: $yellow-pressed;
    }
    .tab-bar-icon {
      @include square(55px);
      color: $gray-dark;
      vertical-align: middle;
    }
    .tab-bar-title {
      margin: 0;
      font-size: 20px;
      color: $gray-dark;
    }
  }
}

//轮播图
.home-banner-wrap {
  padding-left: 24px;
  margin-top: 24px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  &::-webkit-scrollbar {
    height: 0;
    background-color: transparent;
  }
  .home-banner-img {
    border-radius: 8px;
    width: 702px;
    height: 256px;
    margin-right: 16px;
  }
}

//首页分类
.home-classify-wrap {
  margin: 40px 24px;
  display: flex;
  justify-content: space-around;
  .home-classify-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    svg {
      @include square(108px)
    }
    span {
      margin-top: 15px;
      font-size: 26.78px;
      color: #000000;
      text-align: center;
    }
  }
}

//首页跳转标题
.home-title-wrap {
  margin: 0 24px 28px 24px;
  .home-title-line {
    width: 64px;
    height: 8px;
    background: $yellow;
  }
  .home-title-box {
    margin-top: 8px;
    display: flex;
    align-items: center;
    span {
      font-size: 32px;
      color: #030303;
    }
    svg {
      margin-left: 8.2px;
      color: #000;
      width: 22.8px;
      height: 53.2px;
    }
  }
}

//首页专题listview
.home-TopicList-list {
  padding-bottom: 28px;
  display: flex;
  justify-content: center;
  background-color: $bg-color;
  .home-TopicList-img {
    border-radius: 8px;
    display: block;
    width: 704px;
    height: 256px;
  }
}

//首页listview
.home-list {
  width: 704px;
  margin: 0 auto 25px;
  background-color: $bg-color;
  .home-list-imgbox {
    position: relative;
    width: 704px;
    height: 324px;
    .home-list-img {
      border-radius: 8px;
      width: 704px;
      height: 324px;
      background-size: cover;
    }
    .home-list-lazyload {
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      width: 704px;
      height: 324px;
      text-align: center;
      background-color: #f1f4f7;
      display: flex;
      justify-content: center;
      align-items: center;
      .home-list-placeholder {
        align-self: center;
        @include square(80px);
      }
    }
    .home-list-imgtips {
      position: absolute;
      top: 0;
      right: 32px;
      svg {
        width: 136px;
        height: 96px;
      }
      .home-list-tips {
        position: absolute;
        top: 0;
        .home-list-tipstext {
          margin: 10px 0 4px 0;
          width: 136px;
          text-align: center;
          font-size: 20px;
          color: #000;
        }
        .home-list-price {
          text-align: center;
          span {
            color: #000;
            &:first-of-type, &:last-of-type {
              font-size: 20px;
            }
            &:nth-of-type(2) {
              font-size: 36px;
            }
          }
        }
      }
    }
  }
  .home-text-box {
    background-color: #fff;
    height: 128px;
    width: 704px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 4Px 8Px 0 #DDE9F5;
    p {
      @include text-truncate(1);
      padding-left: 24px;
      padding-right: 24px;
      margin: 0;
      &:first-of-type {
        font-size: 32px;
        line-height: 1.2;
        color: #000;
      }
      &:last-of-type {
        padding-top: 10px;
        font-size: 28px;
        line-height: 1.2;
        color: #9B9B9B;
        display: flex !important;
        justify-content: space-between;
        @include text-truncate(1);
        span {
          &:first-of-type {
            width: 400px;
            @include text-truncate(1);
          }
        }
      }
    }
  }
  .home-arrows-box {
    position: absolute;
    width: 704px;
    height: 22px;
    .home-arrows-num {
      position: absolute;
      top: -12.5px;
      @include square(20px);
      border-radius: 50%;
      background-color: $bg-color;
    }
    .home-arrows-left {
      @extend .home-arrows-num;
      left: -9px;
    }
    .home-arrows-right {
      @extend .home-arrows-num;
      right: -9px;
    }
  }
  .home-order-money {
    position: absolute;
    top: 18px;
    right: 24px;
    span {
      color: #fff;
      text-shadow: 0 1px 0 rgba(0, 0, 0, 0.50);
      &:first-of-type {
        font-size: 24px;
      }
      &:last-of-type {
        font-size: 36px;
      }
    }
  }
}

//首页我是有底线
.hom-list-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 24px 28px;
  margin-bottom: 70px;
  .hom-list-footer-text {
    font-size: 26.78px;
    color: #C9CED3;
  }
  .hom-list-footer-icon {
    width: 65.6px;
    height: 50.2px;
  }
}

//商品详情
.popup-default{
 height: 90vh;
  overflow: hidden;
}
.product-wrap {
  .product-list {
    .product-list-imgbox {
      position: relative;
      width: 100%;
      height: 346px;
      .product-list-img {
        width: 100%;
        height: 346px;
        background-size: cover;
      }
      .product-list-lazyload {
        width: 100%;
        height: 346px;
        text-align: center;
        background-color: #f1f4f7;
        display: flex;
        justify-content: center;
        align-items: center;
        .product-list-placeholder {
          align-self: center;
          @include square(80px);
        }
      }
      .product-list-imgtips {
        position: absolute;
        top: 0;
        right: 32px;
        svg {
          width: 136px;
          height: 96px;
        }
        .product-list-tips {
          position: absolute;
          top: 0;
          .product-list-tipstext {
            margin: 10px 0 4px 0;
            width: 136px;
            text-align: center;
            font-size: 20px;
            color: #000;
          }
          .product-list-price {
            text-align: center;
            span {
              color: #000;
              &:first-of-type, &:last-of-type {
                font-size: 20px;
              }
              &:nth-of-type(2) {
                font-size: 36px;
              }
            }
          }
        }
      }
    }
    .product-text-box {
      height: 128px;
      width: 100%;
      display: flex;
      justify-content: center;
      flex-direction: column;
      p {
        @include text-truncate(1);
        padding-left: 24px;
        padding-right: 24px;
        margin: 0;
        &:first-of-type {
          font-size: 32px;
          line-height: 1.2;
          color: #000;
        }
        &:last-of-type {
          padding-top: 10px;
          font-size: 28px;
          line-height: 1.2;
          color: #9B9B9B;
        }
      }
    }
  }

  .product-top-placeholder {
    text-align: center;
    padding-bottom: 20px;
    svg {
      width: 120px;
      height: 20px;
    }
  }

  .product-bottom-placeholder {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 98px;
    padding: 20px 0;
    svg {
      @include square(32px);
    }
  }
}

.product-nav {
  position: fixed;
  bottom: 0;
  .product-nav-box {
    display: flex;
    width: 100%;
    height: 96px;
    .product-nav-kefu {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      width: 270px;
      height: 96px;
      background: #fafafa;
      svg {
        width: 34px;
        height: 40px;
      }
      span {
        margin-left: 16px;
        font-size: 28px;
        color: #000;
      }

    }
    .product-nav-btn {
      border: none;
      font-size: 32px;
      color: #000;
      background-color: $yellow;
      width: 480px;
      height: 96px;
    }
  }
}

.product-kefu-alert {
  display: block;
  width: 531px;
  height: 450px;
}

.product-standard-wrap {
  line-height: 1.15;
  text-align: initial;
  width: 100%;
  height: 780px;
  position: relative;
  .product-standard-top {
    display: flex;
    padding: 18px 24px 0 24px;
    .product-standard-img {
      border-radius: 8px;
      display: block;
      @include square(192px)
    }
    .product-standard-titlewrap {
      display: flex;
      flex-direction: column;
      padding-top: 14px;
      margin-left: 20px;
      .product-standard-text {
        font-size: 32px;
        line-height: 1.3;
        color: #000;
      }
      .product-standard-price {
        display: flex;
        flex: 1;
        align-items: flex-end;
        padding-bottom: 10px;
        span {
          color: #F6A623;
          &:first-of-type {
            margin-bottom: 3px;
          }
          &:first-of-type, &:last-of-type {
            font-size: 28px;
          }
          &:nth-of-type(2) {
            font-size: 40px;
          }
          &:last-of-type {
            margin-bottom: 2px;
          }
        }
      }
    }
  }
  .product-standard-line {
    margin: 32px auto;
    width: 702px;
    height: 2px;
    background-color: #ddd;
  }
  .product-standard-box {
    height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    .product-standard-select {
      padding: 0 24px;
      .product-standard-selecttitle {
        font-size: 28px;
        color: #9B9B9B;
      }
      .product-standard-btn-active {
        margin-top: 20px;
        font-size: 28px;
        padding: 15px 20px;
        color: #000;
        background: #FFE227;
        border-radius: 8px;
        border: none;
        margin-right: 20px;
      }
      .product-standard-btn-default {
        margin-top: 20px;
        padding: 15px 20px;
        font-size: 28px;
        color: #000;
        background: #ddd;
        border-radius: 8px;
        border: none;
        margin-right: 20px;
      }
    }
  }
  .product-standard-btn {
    position: absolute;
    bottom: 0;
  }
}

.product-ditor {
  padding: 0 24px;
  margin-top: 40px;
  margin-bottom: 30px;
}
.product-instructions {
  margin-top: 8px;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  span {
    font-size: 28px;
    line-height: 46px;
    &:first-of-type {
      margin-right: 18px;
      color: #000;
    }
    &:last-of-type {
      flex: 1;
      flex-wrap: wrap;
      color: #4A4A4A;
    }
  }
}

//订单详情
.order-pay-bg {
  background: #F3F6FA;
  .order-pay-cell {
    flex-direction: column;
  }
  .order-pay-toptips {
    margin: 28px auto 0 auto;
    width: 710px;
    height: 12px;
    background: #697482;
    border-radius: 20px;

  }

  .order-pay-wrap {
    width: 686px;
    margin: -4px auto 0 auto;
    background-color: #fff;
    box-shadow: 0 4px 16px 0 #DDE9F5;
    .order-pay-title {
      padding: 42px 32px 0 32px;
      font-size: 32px;
      line-height: 34px;
      color: #000;
    }
    .order-pay-guide {
      margin-top: 34px;
      margin-bottom: 32px;
      padding: 0 32px;
      display: flex;
      justify-content: space-between;
      section {
        font-size: 28px;
        &:first-of-type {
          color: #9B9B9B;
        }
        &:last-of-type {
          color: #000;
          @include text-truncate(1);
        }
      }
    }
    .order-pay-price {
      margin-top: 16px;
      margin-bottom: 17px;
      padding: 0 32px;
      align-items: center;
      display: flex;
      color: #9B9B9B;
      font-size: 28px;
      justify-content: space-between;

      .order-pay-price-children {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        font-size: 28px;
        span {
          &:first-of-type {
            color: #000;
          }
          &:last-of-type {
            font-size: 24px;
            @include text-truncate(1);
          }
        }
      }

    }
    .order-pay-phone {
      margin-top: 28px;
      margin-bottom: 28px;
      padding: 0 32px;
      align-items: center;
      display: flex;
      color: #9B9B9B;
      font-size: 28px;
      justify-content: space-between;

      .order-pay-phone-input {
        text-align: right;
        font-size: 28px;
        border: none;
        span {
          &:first-of-type {
            color: #000;
          }
          &:last-of-type {
            @include text-truncate(1);
          }
        }
      }

      .order-pay-buy-right {
        display: flex;
        flex-direction: row;
        .order-pay-buy-minus {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 48px;
          height: 48px;
          border: 2px solid #E9E9E9;
          border-top-left-radius: 24px;
          border-bottom-left-radius: 24px;
          svg {
            @include square(18px)
          }
        }
        .order-pay-buy-amount {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 112px;
          height: 48px;
          color: #000000;
          border: 2px solid #E9E9E9;
          border-right: none;
          border-left: none;

        }
        .order-pay-buy-plus {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 48px;
          height: 48px;
          border: 2px solid #E9E9E9;
          border-top-right-radius: 24px;
          border-bottom-right-radius: 24px;
          svg {
            @include square(18px)
          }
        }
      }
    }
    .order-pay-coupon {
      margin-top: 34px;
      margin-bottom: 32px;
      padding: 0 32px;
      display: flex;
      justify-content: space-between;
      section {
        font-size: 28px;
        &:first-of-type {
          color: #9B9B9B;
        }
        &:last-of-type {
          color: #F6A623;
        }
      }
    }
  }

  .order-pay-line-solid {
    margin: 0 auto;
    width: 622px;
    height: 2px;
    background: #E9EEF0;
  }

  .order-pay-bottom {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 96px;
    flex-direction: row;
    section {
      &:first-of-type {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.9;
        background: #ffffff;
        width: 40%;
        height: 96px;
        span {
          &:first-of-type {
            font-size: 28px;
            color: #000000;
            margin-top: 4px;
          }
          &:nth-of-type(2) {
            font-size: 28px;
            color: #F6A623;
            margin-top: 4px;
          }
          &:nth-of-type(3) {
            font-size: 40px;
            color: #F6A623;
            line-height:1;

          }
          &:last-of-type {
            font-size: 28px;
            color: #F6A623;
            margin-top: 10px;
          }
        }
      }
      &:last-of-type {
        background: #16C56F;
        height: 96px;
        width: 60%;
        justify-content: center;
        align-items: center;
        display: flex;
        font-size: 32px;
        color: #fff;
      }

    }
  }
}
.order-pay-coupons {
  height: 700px;
  background: #FFFFFF;
  position: relative;
  .order-pay-coupons-title{
    display: flex;
    padding: 36px;
    font-size: 36px;
    color: #000000;
    justify-content: center;
    border-bottom: 1px solid #ddd;

  }
  .order-pay-coupons-cell{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    border-bottom: 1px solid #ddd;
    &:last-child {
      border-bottom: none;
    }
    .order-pay-coupons-name {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 28px;
      color: #000000;
      padding: 32px;
    }
    .order-pay-coupons-img {
      height: 32px;
      width: 32px;
      padding: 24px;
    }
  }
  .order-pay-coupons-bottom{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 96px;
    background: #FFE227;
    font-size: 34px;
  }

}

